package com.zcf.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouzhuang
 * @since 2018-11-28
 */
@Data
public class Orders extends Model<Orders> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id")
	private String id;
	private String shopPhone;
	private String shopName;
	/**
	 * 0:代付款 1：待收货 2：待评价 3：退款
	 */
	private Integer shopStatus;
	private String diningName;
	private String productName;
	private Double productPrice;
	private Integer number;
	private Double total;
	private String diningId;
	private String productId;
	private String userId;
	/**
	 * 0:等待商家接单 1：已接单 2：配送中 3：配送完
	 */
	private Integer diningStatus;
	private String ridingId;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 购买者收货地址
	 */
	private String shopAddress;
	private String time;
	/**
	 * 备用
	 */
	private String notice;
	private String orderInfoId;

	/**
	 * 完成时间
	 */
	private String falsetime;
	@TableField(exist = false)
	private String shopType;
	@TableField(exist = false)
	private String diningType;
	@TableField(exist = false)
	private String image;
	@TableField(exist = false)
	private List<Product> product;
	@TableField(exist=false)
	private String addtime;
	@TableField(exist=false)
	private int sum;
	@Override
	protected Serializable pkVal() {
		return id;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
